package com.ruoyi.ring.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ring.mapper.RingMyOpinionImageMapper;
import com.ruoyi.ring.domain.RingMyOpinionImage;
import com.ruoyi.ring.service.IRingMyOpinionImageService;

/**
 * 我的意见反馈子Service业务层处理
 * 
 * @author liuwp
 * @date 2025-10-15
 */
@Service
public class RingMyOpinionImageServiceImpl implements IRingMyOpinionImageService 
{
    @Autowired
    private RingMyOpinionImageMapper ringMyOpinionImageMapper;

    /**
     * 查询我的意见反馈子
     * 
     * @param id 我的意见反馈子主键
     * @return 我的意见反馈子
     */
    @Override
    public RingMyOpinionImage selectRingMyOpinionImageById(Long id)
    {
        return ringMyOpinionImageMapper.selectRingMyOpinionImageById(id);
    }

    /**
     * 查询我的意见反馈子列表
     * 
     * @param ringMyOpinionImage 我的意见反馈子
     * @return 我的意见反馈子
     */
    @Override
    public List<RingMyOpinionImage> selectRingMyOpinionImageList(RingMyOpinionImage ringMyOpinionImage)
    {
        return ringMyOpinionImageMapper.selectRingMyOpinionImageList(ringMyOpinionImage);
    }

    /**
     * 根据业务主键查询一条记录：我的意见反馈子
     *
     * @param ringMyOpinionImage 我的意见反馈子
     * @return 我的意见反馈子
     */
    @Override
    public RingMyOpinionImage selectOneRingMyOpinionImage(RingMyOpinionImage ringMyOpinionImage)
    {
        return ringMyOpinionImageMapper.selectOneRingMyOpinionImage(ringMyOpinionImage);
    }

    /**
     * 新增我的意见反馈子
     * 
     * @param ringMyOpinionImage 我的意见反馈子
     * @return 结果
     */
    @Override
    public int insertRingMyOpinionImage(RingMyOpinionImage ringMyOpinionImage)
    {
        ringMyOpinionImage.setCreateTime(DateUtils.getNowDate());
        return ringMyOpinionImageMapper.insertRingMyOpinionImage(ringMyOpinionImage);
    }

    /**
     * 修改我的意见反馈子
     * 
     * @param ringMyOpinionImage 我的意见反馈子
     * @return 结果
     */
    @Override
    public int updateRingMyOpinionImage(RingMyOpinionImage ringMyOpinionImage)
    {
        ringMyOpinionImage.setUpdateTime(DateUtils.getNowDate());
        return ringMyOpinionImageMapper.updateRingMyOpinionImage(ringMyOpinionImage);
    }

    @Override
    public int updateRingMyOpinionImageCondition(RingMyOpinionImage ringMyOpinionImage, RingMyOpinionImage ringMyOpinionImageCondition)
    {
                ringMyOpinionImage.setUpdateTime(DateUtils.getNowDate());
        return ringMyOpinionImageMapper.updateRingMyOpinionImageCondition(ringMyOpinionImage, ringMyOpinionImageCondition);
    }

    /**
     * 批量删除我的意见反馈子
     * 
     * @param ids 需要删除的我的意见反馈子主键
     * @return 结果
     */
    @Override
    public int deleteRingMyOpinionImageByIds(Long[] ids)
    {
        return ringMyOpinionImageMapper.deleteRingMyOpinionImageByIds(ids);
    }

    /**
     * 删除我的意见反馈子信息
     * 
     * @param id 我的意见反馈子主键
     * @return 结果
     */
    @Override
    public int deleteRingMyOpinionImageById(Long id)
    {
        return ringMyOpinionImageMapper.deleteRingMyOpinionImageById(id);
    }

    /**
     * 条件删除我的意见反馈子
     *
     * @param ringMyOpinionImage 我的意见反馈子
     * @return 结果
     */
    @Override
    public int deleteRingMyOpinionImageByCondition(RingMyOpinionImage ringMyOpinionImage)
    {
        return ringMyOpinionImageMapper.deleteRingMyOpinionImageByCondition(ringMyOpinionImage);
    }

}
